package tech.aistar.entity;

import java.io.Serializable;

public class Address implements Serializable {

    private Integer id;

    private Integer userId;

    private String areaName;

    private String addressDeatil;

    private Integer isDefault;

    private Integer dataFlag;

    private String username;

    private String phoneNumber;

    private String provinceName;

    private String cityName;


    public Address() {
    }

    public Address(Integer id, Integer userId, String areaName, String addressDeatil, Integer isDefault, Integer dataFlag, String username, String phoneNumber, String provinceName, String cityName) {
        this.id = id;
        this.userId = userId;
        this.areaName = areaName;
        this.addressDeatil = addressDeatil;
        this.isDefault = isDefault;
        this.dataFlag = dataFlag;
        this.username = username;
        this.phoneNumber = phoneNumber;
        this.provinceName = provinceName;
        this.cityName = cityName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getAddressDeatil() {
        return addressDeatil;
    }

    public void setAddressDeatil(String addressDeatil) {
        this.addressDeatil = addressDeatil;
    }

    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    public Integer getDataFlag() {
        return dataFlag;
    }

    public void setDataFlag(Integer dataFlag) {
        this.dataFlag = dataFlag;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Address{");
        sb.append("id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", areaName='").append(areaName).append('\'');
        sb.append(", addressDeatil='").append(addressDeatil).append('\'');
        sb.append(", isDefault=").append(isDefault);
        sb.append(", dataFlag=").append(dataFlag);
        sb.append(", username='").append(username).append('\'');
        sb.append(", phoneNumber='").append(phoneNumber).append('\'');
        sb.append(", provinceName='").append(provinceName).append('\'');
        sb.append(", cityName='").append(cityName).append('\'');
        sb.append('}');
        return sb.toString();
    }
}